package com.dys.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: 疾风
 * @ClassName: Servlet01
 * @Description: url匹配规则
 * @CreateDate: 2024/09/20
 * @Version: v1.0.0
 */
public class Servlet05 extends HttpServlet {

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        // url匹配
        System.out.println("走Servlet05的service方法......");
        System.out.println("匹配上了");
        resp.setContentType("text/html;charset=utf-8");
        resp.getWriter().write("匹配成功!");
    }
}
